<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>08布局练习</title>
    <style>
        body{
            font: 12px "simhei", Arial, Helvetica, sans-serif;
            color: #666;
        }

        body>div{
            width: 1000px;
            margin: 0 auto;
        }
        body>div>div>div{
            background-color: #e8e8e8;
        }
        #t_left{
            width: 611px;
            height: 376px;
            float: left;
        }
        #t_right{
            width: 375px;
            height: 376px;
            float: right;
        }
        body>div>div{
            overflow: hidden;/*避免出现高度识别为0 的异常 因为此div里面的所有子元素全部浮动*/
            margin-bottom: 12px;
        }
        #b_left{
            width: 366px;
            height: 233px;
            float: left;
        }
        .b_right{
            width: 198px;
            height: 233px;
            float: right;
            margin-left: 12px;
        }
        #t_left>div{
            width: 245px;
            height: 232px;
            margin: 68px 0 0 36px;
        }
        #t_left{
            position: relative;/*做参照物*/
        }
        #t_left>img{
            position: absolute;
            width: 318px;
            height: 319px;
            right: 20px;
            bottom: 20px;
        }
        .p1{
            font-size: 32px;
            color: #333;
            margin-bottom: 12px;
        }
        .p3{
            font-size: 24px;
            color: #0aa1ed;
            font-weight: bold;
            margin-bottom: 12px;
        }
        #t_div a{
            display: block;
            width: 132px;
            height: 40px;
            background-color: #0aa1ed;
            text-align: center;
            color: white;
            font-size: 20px;
            border-radius: 2px;
            text-decoration: none;
            line-height: 40px;
        }
        /*顶部右侧样式*/
        #t_right>div{
            width: 253px;
            height: 232px;
            margin: 39px 0 0 25px;
        }
        #t_right{
            position: relative;
        }
        #t_right>img{
            position:  absolute;
            right: 20px;
            bottom: 20px;
        }
        /*缩放动画相关*/
        img{
            transition-duration: 2s;/*设置动画持续时间(单位秒)*/
        }
        img:hover{
            transform: scale(1.1);
        }
        /*下左样式*/
        .c_div{
            padding-left: 10px;
        }
        #d1{
            background-color: #0aa1ed;
            width: 355px;
            height: 35px;
            line-height: 35px;
            padding-left: 11px;
            border-radius: 3px;
        }
        #d1 span{
            font-size: 16px;
            color: #fff;
            margin-right: 9px;
        }
        ul{
            overflow: hidden;
            width: 366px;
            height: 20px;
            padding: 0px;
            list-style-type: none;
        }
        li{
            float: left;
            margin-right: 20px;
            text-align: left;
        }
        li>a{
            text-decoration: none;
            color: #0AA1ED;
        }
        li>a:hover{
            color: #0a7eb8;
        }
        .c_div>p{
            width: 366px;
            height: 14px;
            margin: 0px;
            margin-top: 17px;
            padding: 0px;
            color: #62B5EC;
        }
        ul li a {
            color: #0aa1ed;
        }
        /*下右样式*/
        .bp1{
            margin-bottom: 6px;
            font-size: 12px;
            font-weight: lighter;
            color: #000;
        }
        .bp2{
            margin-top: 6px;
            margin-bottom: 6px;
            font-size: 12px;
            font-weight: bold;
            color: #0AA1ED;
        }
        .bp3{
            width: 100px;
            height: 24px;
            line-height: 24px;
            font-size: 24px;
            text-align: center;
            vertical-align: middle;
            cursor: pointer;
            font-size: 12px;
            margin: 0px auto;
        }
        .bp3{
            background-color: #0aa1ed;
            border-radius: 2px;
        }
        .bp3>a{
            text-decoration: none;
            /*
            修改为块级元素后需要单独设置居中
            上级元素div的text-align只会对行内元素或行内块元素生效
            display: block;
            margin: 0 auto;
            */
            display: inline-block;
            width: 100px;
            height: 24px;
            color: white;
        }
        .b_right{
            text-align: center;
        }
    </style>
</head>
<body>
    <h2>
        <span>
            <img src="http://doc.canglaoshi.org/tstore_v1/images/itemCat/computer_icon.png" alt="">
        </span>
        办公电脑 /1F
    </h2>
    <div>
        <div id="t_div">
            <div id="t_left">
                <div>
                    <p class="p1">灵越 燃7000系列</p>
                    <p class="p2">
                        酷睿双核i5处理器|256GB SSD| 8GB内存
                        <br>
                        英特尔HD显卡620含共享显卡内存
                    </p>
                    <p class="p3">￥4999.00</p>
                    <a href="">查看详情</a>
                </div>
                <img src="http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img1.png" alt="">
            </div>
            <div id="t_right">
                <div>
                    <p class="p1">颜值 框不住</p>
                    <p class="p2">
                        酷睿双核i5处理器|256GB SSD| 8GB内存
                        <br>
                        英特尔HD显卡620含共享显卡内存
                    </p>
                    <p class="p3">￥6888.00</p>
                    <a href="">查看详情</a>
                </div>
                <img src="http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img2.png" alt="">
            </div>
        </div>
        <div id="b_div">
                <div id="b_left">
                    <div id="d1">
                        <img src="http://doc.canglaoshi.org/tstore_v1/images/itemCat/computer_icon1.png" alt="">
                        <span>电脑,办公/1F</span>
                    </div>
                    <div class="c_div">
                        <p>电脑整机</p>
                        <ul>
                            <li><a href="">笔记本</a></li>
                            <li><a href="">游戏机</a></li>
                            <li><a href="">台式机</a></li>
                            <li><a href="">一体机</a></li>
                            <li><a href="">服务器</a></li>
                            <li><a href="">联想</a></li>
                        </ul>
                    </div>
                    <div class="c_div">
                        <p>电脑配件</p>
                        <ul>
                            <li><a href="">CPU</a></li>
                            <li><a href="">SSD硬盘</a></li>
                            <li><a href="">显示器</a></li>
                            <li><a href="">组装电脑</a></li>
                            <li><a href="">机箱</a></li>
                        </ul>
                    </div>
                    <div class="c_div">
                        <p>外设/游戏</p>
                        <ul>
                            <li><a href="">键盘</a></li>
                            <li><a href="">鼠标</a></li>
                            <li><a href="">U盘</a></li>
                            <li><a href="">移动硬盘</a></li>
                            <li><a href="">游戏设备</a></li>
                            <li><a href="">智能单车</a></li>
                        </ul>
                    </div>
                </div>
                <div class="b_right">
                    <img src="http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img3.png" alt="">
                    <p class="bp1">戴尔(DELL)XPS13-9360-R1609 13.3英寸微边框笔记本电脑</p>
                    <p class="bp2">￥4600.00</p>
                    <p class="bp3"><a href="product_details.html">查看详情</a></p>
                </div>
                <div class="b_right">
                    <img src="http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img4.png" alt="">
                    <p class="bp1">14.8mm超轻薄笔记本电脑 航海王版 13.3英寸微边框笔记本电脑</p>
                    <p class="bp2">￥5600.00</p>
                    <p class="bp3"><a href="product_details.html">查看详情</a></p>
                </div>
                <div class="b_right">
                    <img src="http://doc.canglaoshi.org/tstore_v1/images/itemCat/study_computer_img3.png" alt="">
                    <p class="bp1">联想(Lenovo) YOGA900 多彩版 13.3英寸微边框笔记本电脑</p>
                    <p class="bp2">￥6600.00</p>
                    <p class="bp3"><a href="product_details.html">查看详情</a></p>
                </div>
        </div>
    </div>
</body>
</html>